package cn.fanqinghong.basic.constants;

/**
 * FAN
 * 2022/6/16  15:58
 */
public class BaseConstants {

    public class RegisterConstants{
        public static final String REGISTER_SMS_PREFIX = "register:";
        public static final String LOGIN_SMS_PREFIX = "login:";
        public static final String LOGIN_SMS_TYPE = "register";

    }

    public class WechatConstants{
        public static final String APPID = "wxd853562a0548a7d0";
        public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";
        public static final String BINDER = "binder";
        //微信绑定短信息验证码 key的前缀
        public static final String BINDER_SMS_PREFIX = "binder:";
        //通过 code 获取access_token
        public static final String TOKEN_URL  = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        //获取用户个人信息
        public static final String WXUSER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";
    }
}
